<div style="float: left;margin-left: 20px" class="title_type" > Audio </div>
<p style="text-align: right;">Audio duration <%= sound_duration(@slideshow.mp3_duration) %></p>
<div class="clear-float-left"></div>
<div style="margin-left:3px;">
<%= start_form_tag ({:controller=>"slideshows" ,:action => 'update', :id => @slideshow.id} , {:multipart => true}) %>
  <% if @slideshow.sound_url %>
    <table onmouseover="show_delete(-1)" onmouseout="hide_delete(-1)" class="box_container">
    <tr><td class="white_box">
        <table class="box"><tr><td>
        <%= link_to (image_tag 'audio.gif'), url_for_file_column("slideshow", "sound_url"),:class => 'audio_image' %>
        </td></tr><tr><td class="box_text">
        <%= sound_duration(@slideshow.mp3_duration) %>
        </td></tr></table>
    </td><td class="delete_box">
    <%= link_to_remote(image_tag('delete.gif',:id => 'delete_-1'), :update => 'sound_form',
     :after => "insertWaitingImg('sound_form')",
     :url => {:controller => 'slideshows', :action => 'delete_sound', :id => @slideshow.id},:confirm => 'Do you really want to delete this MP3 file?')%>
    </td></tr>
    </table>
    <p>Choose a different sound file to upload (mp3)</p>
  <% else -%>
    <p>Choose a sound file to upload (mp3)</p>
  <% end %>

<p><%= file_column_field 'slideshow', 'sound_url', {:size => 20} %></p>
  <p><%= submit_tag 'Upload the file' %></p>
<%= end_form_tag %>
</div>